package main

import (
	"flag"

	"gitee.com/thubcc/mobile/lte"
	"gitee.com/thubcc/rtlmmap"
)

var (
	argPort  = flag.Int("p", 0, "Rx antana port")
	argReset = flag.Bool("r", false, "Reset PPM")
	argSync  = flag.Int("s", 8, "sync record size")
)

func main() {
	flag.Parse()
	view := rtlmmap.NewRtlView(*argPort, rtlmmap.DefaultLTEConfig)
	ftco := view.FTV(*argPort)

	afc := lte.NewAFC(ftco, *argReset, *argSync)
	afc.AFCThreading()
}
